package com.lcz.googleplay.config;

/**
 * Created by hp on 2016/10/27.
 */

public class AppProtocol extends BaseProtocol {
    @Override
    public String load(int index) {
        //读取本地缓存
        String json = loadLocal(index);
        if (json != null) {
            return json;
        } else {
            //重新请求服务器
            loadServer(getKey(), index);
        }
        return null;
    }

    @Override
    public String getKey() {
        return "app";

    }
}
